package com.wang.controller;

import com.wang.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FlowLimitController {
    // @GetMapping("/testA")
    // public String testA() {
    //     return "------testA";
    // }
    // @GetMapping("/testB")
    // public String testB() {
    //     return "------testB";
    // }

    @Autowired
    private TestService testService;
    @GetMapping("/testA")
    public String testA() {
        testService.getTest();
        return "------testA";
    }
    @GetMapping("/testB")
    public String testB() {
        testService.getTest();
        return "------testB";
    }
}